package property.personal.property_mange.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import property.personal.property_mange.dao.PagingMapper;
import property.personal.property_mange.pojo.Propertyinfo;
import property.personal.property_mange.service.PagingService;

import java.util.List;

@Service
public class PagingImpl implements PagingService {

    @Autowired
    PagingMapper pagingMapper;

    @Override
    public List<Propertyinfo> getProperty_one(int begin, int pagesize) {
        return pagingMapper.getproperty_one(begin,pagesize);
    }

    @Override
    public int getpagecount() {
        return pagingMapper.getpagecount();
    }

    @Override
    public int getsearchcount(String property_name) {
        return pagingMapper.getsearchcount(property_name);
    }

    @Override
    public int updatebyid(int id, String status) {
        return pagingMapper.updatebyid(id,status);
    }


    @Override
    public List<Propertyinfo> getdatasearch(String searchname, int begin, int pagesize) {
        return pagingMapper.getdatasearch(searchname,begin,pagesize);
    }

    @Override
    public List<Propertyinfo> orderby(int begin, int pagesize, String colum, String order) {
        return pagingMapper.orderby(begin,pagesize,colum,order);
    }

    @Override
    public List<Propertyinfo> searchorderby(String searchname, int begin, int pagesize, String colum, String order) {
        return pagingMapper.searchorderby(searchname,begin,pagesize,colum,order);
    }


}
